﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using enqueteJwVd.DAL;

namespace enqueteJwVd.Services
{
    public class RoleService : IRoleService
    {
        private UnitOfWork unitOfWork;

        public RoleService()
        {
            unitOfWork = new UnitOfWork();
        }

        #region IRoleService Members
        public List<Role> GetAllRoles()
        {
            
            return unitOfWork.RoleRepository.GetAll().ToList<Role>();
        }
        #endregion

    }
}